package com.buddy.syn.method._02;

public class ThreadA extends Thread {

    private HasSelfPrivateNum hasSelfPrivateNum;
    public ThreadA(HasSelfPrivateNum hasSelfPrivateNum){
        super();
        this.hasSelfPrivateNum = hasSelfPrivateNum;
    }

    public void run(){
        super.run();
        hasSelfPrivateNum.add("a");
    }

}
